<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CoupoNow</title>
<link href="couponow.css" rel="stylesheet" type="text/css" />

<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<SCRIPT TYPE="text/javascript">
			function getbId()
			{
				var bId = location.href.substring((location.href.indexOf('bId=')+4), location.href.length);
				return bId;
			}
</script>
<style type="text/css">
body {
	background-image:url('light_blue.jpg');
	
}
</style>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="general">
 <div id="heading">
 <div id="image"><a href="/"><img src="heading1.png" width="474" height="166" alt="Logo" style="border-style:none"/></a></div>
  <div id="yoursource">
  	<img src="pic1.png" height="126" width="540"/>
  </div>
</div>

<br class="clearfloat" />
<div id="body">
<div id="data">
<b>
<FORM name = "myform" ACTION="/addnewcoupon">
 <CENTER>
  <BR />
 <INPUT TYPE="hidden" id="busid" NAME="bId" VALUE=""><P>
<B> <table width="639" bgcolor="white" border="1">
  <tr>
    <td width="372" height="50"><div align="right">
		<span id="sprytextfield3"><span class="textfieldRequiredMsg">.שדה חובה</span>
        <span class="textfieldInvalidFormatMsg">אנא הכנס מספר</span>
        <input type="text" name="num" id="text3" />
		</span> </div></td>
    <td width="257"><div align="right">:מספר קופונים</div></td>
  </tr>
  <tr>
    <td height="50"><div align="right">
		<span id="sprytextfield4"><span class="textfieldRequiredMsg">.שדה חובה</span>
        <span class="textfieldInvalidFormatMsg">אנא הכנס מספר</span>
        <input type="text" name="max" id="text4" />
        </span> </div></td>
    <td><div align="right">:מספר קופונים מקסימלי לאדם</div></td>
  </tr>
  <tr>
    <td height="50"><div align="right">
    	<select name="type">
		<option value="1">50% הנחה</option>
		<option value="2">1+1</option>
		<option value="3">בירה ללא תחתית</option>
		<option value="4">צ'ייסר מתנה בקניית בירה</option> 
		</select>
    </div></td>
    <td><div align="right">:סוג קופון</div></td>
  </tr>
  <tr>
    <td height="50"><div align="right">
    	<span id="sprytextfield5"><span class="textfieldRequiredMsg">.שדה חובה</span>
        <span class="textfieldInvalidFormatMsg">אנא הכנס מספר</span>
        <input type="text" name="full" id="text5" />
    	</span></div></td>
    <td><div align="right">:מחיר מלא</div></td>
  </tr>
  <tr>
    <td height="50"><div align="right">
		<span id="sprytextfield6"><span class="textfieldRequiredMsg">.שדה חובה</span>
        <span class="textfieldInvalidFormatMsg">אנא הכנס מספר</span>
        <input type="text" name="percent" id="text6" />
		</span></div></td>
    <td><div align="right">:סכום ההנחה</div></td>
  </tr>
  <tr>
    <td height="50"><div align="right">
		<span id="sprytextfield1"><span class="textfieldRequiredMsg">.שדה חובה</span>
        <span class="textfieldInvalidFormatMsg">hh:mm אנא הכנס זמנים בפורמט </span>
        <input type="text" name="startH" id="text1" />
		</span> </div></td>
    <td><div align="right">:זמן התחלה</div></td>
  </tr>
  <tr>
    <td height="50"><div align="right">
    	<span id="sprytextfield2"><span class="textfieldRequiredMsg">.שדה חובה</span>
        <span class="textfieldInvalidFormatMsg">hh:mm אנא הכנס זמנים בפורמט</span>        <input type="text" name="endH" id="text2" />
        
        </span></div></td>
    <td><div align="right">:זמן סיום</div></td>
  </tr>
</table> 
 
 
<INPUT TYPE="SUBMIT" value="פרסם עסקה" style="font-weight:bold;border:1px solid;"> 
 <!-- Press this button to submit form -->
 </CENTER>
</FORM>
</B></b>
<SCRIPT TYPE="text/javascript">
		var bId = getbId();
		document.getElementById("busid").value = bId;
</script>

</div>
</div>
</div>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "time");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "time");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "integer");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "integer");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "integer");


</script>
</body>

</html>
